package com.Dubbo.RWSeparate.provider.read.service.demo;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.Dubbo.RWSeparate.api.demo.entity.Demo;
import com.Dubbo.RWSeparate.api.demo.service.read.IDemoReadService;
import com.Dubbo.RWSeparate.provider.read.dao.demo.DemoMapper;

@Service(value = "demoService")
public class DemoServiceImpl implements IDemoReadService{

	@Resource(name = "demoMapper")
	private DemoMapper demoMapper;
	
	@Override
	public Demo selectByPrimaryKey(Integer id) {
		Demo demo = demoMapper.selectByPrimaryKey(id);
		return demo;
	}

}
